<?php
// +----------------------------------------------------------------------
// | CatchAdmin [Just Like ～ ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~{$year} http://catchadmin.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
// +----------------------------------------------------------------------
// | Author: JaguarJack [ njphper@gmail.com ]
// +----------------------------------------------------------------------

// you should use `$router`
/* @var think\Route $router */

$router->group(function () use ($router) {
   $router->resource('Community', \catchAdmin\community\controller\Community::class);

})->middleware('auth');

//添加患者
$router->post('addCommunityPatient', '\catchAdmin\community\controller\CommunityRegister@addCommunityPatient');
$router->any('getCommunityRelation', '\catchAdmin\community\controller\CommunityRegister@getCommunityRelation');